// 封装了一些登录页面用到的请求API

import request from "@/utils/request";

// 获取用户列表
let getuserlist = (data:UserListType):Promise<any>=>request("/users",'GET',data)
// 修改用户状态
let editUserState = (id:number,type:Boolean):Promise<any>=>request(`users/${id}/state/${type}`,'PUT')


export {
   getuserlist,
   editUserState,
}
